<!DOCTYPE html>
<html>

	<head lang="en">
		<meta charset="UTF-8">
		<meta http-equiv="Expires" content="0">
		<meta http-equiv="Pragma" content="no-cache">
		<meta http-equiv="Cache-control" content="no-cache">
		<meta http-equiv="Cache" content="no-cache">
		<title>广告投放-代理商</title>
		<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" id="favicon">
		<link rel="stylesheet" href="lib/bootstrap/css/bootstrap.min.css" />
		<link rel="stylesheet" href="css/bootstrap-datetimepicker.min.css" />
		<link rel="stylesheet" href="css/base.css" />
		<link rel="stylesheet" href="modules/agent/agbCustomer/agbCustomer.css" />
		<link rel="stylesheet" href="../../oem/css/common.css" />
		<style>
			.ng-hide {
				display: none;
			}
		</style>
	</head>

	<body>
		<div class="nav_top">
			<div class="logo fl" id="logo"></div>
			<ul class="nav_list fl">

				<li>
					<a class="href_url" data="agentIndex.html">首页</a>
				</li>

				<li>

					<a class="toFirstSub href_url" data="customer.html">投放管理</a>
					<ul class="nav_dropdown" style="width: 1903px;">
						<li>
							<a class="href_url" data="customer.html">广告主列表</a>
						</li>

					</ul>
				</li>

				<li>
					<a class="toFirstSub href_url" data="bidding.html">报表中心</a>
					<ul class="nav_dropdown" style="width: 1903px;padding-left: 335px;">

						<li>
							<a class="href_url" data="bidding.html">竞价交易概况</a>
						</li>

						<li>
							<a class="href_url" data="deal.html">合约交易概况</a>
						</li>

						<!--<li>
							<a class="href_url" data="resources.html">合约资源报表</a>
						</li>-->

					</ul>
				</li>

				<li>
					<a data="account.html" class="toFirstSub active href_url">系统管理</a>
					<ul class="nav_dropdown" style="padding-left: 235px; width: 1903px;">

						<li>
							<a class="href_url" data="account.html">账户管理</a>
						</li>

						<li>
							<a class="href_url" data="user.html">员工用户管理</a>
						</li>

						<li>
							<a class="href_url active" data="adv.html">广告主管理</a>
						</li>
						<li>
							<a class="href_url" data="role.html">角色管理</a>
						</li>

					</ul>
				</li>

				<li>
					<a data="record.html" class="toFirstSub href_url">财务管理</a>
					<ul class="nav_dropdown" style="padding-left: 309px; width: 1903px;">
						<li>
							<a class="href_url" data="record.html">财务记录</a>
						</li>

						<li>
							<a class="href_url" data="info.html">财务信息</a>
						</li>
						<li>
							<a  class="href_url" data="profit.html">利润提取</a>
						</li>
					</ul>
				</li>

				<!--<li>
					<a data="heYueZiYuanGuanLi.html" class="toFirstSub href_url">合约交易管理</a>
					<ul class="nav_dropdown" style="padding-left: 310px; width: 1903px;">

						<li>
							<a class="href_url" data="heYueZiYuanGuanLi.html">商品列表</a>
						</li>

						<li>
							<a class="href_url" data="buy.html">已购列表</a>
						</li>

					</ul>
				</li>-->
			</ul>
			<div class="user">
				<div class="user-avatar"></div>
				<div class="user-info">
					<p></p>
					<p></p>
				</div>
				<ul class="user-list">

					<li>余额：</li>

					<li>退出登录</li>
				</ul>
			</div>
		</div>
		<div class="adv-page page">
			<h3 class="page-title">广告主管理</h3>
			<div class="filter-box clearfix">
				<button type="button" class="dsp-btn btn-green fr newAdv" onclick="UserModal()">添加广告主</button>

				<div class="search">
					<input class="form-control search-input" id="searchRalename" type="text" placeholder="用户名或ID">
					<i class="search-icon clickFunc"></i>
				</div>
			</div>
			<div class="table-box">
				<div class="table-title">
					<h3 class="table-title-font">账户管理列表</h3>
				</div>
				<table>
					<thead>
						<tr>
							<th>状态</th>
							<th>广告主ID</th>
							<th>公司名</th>
							<th>用户名</th>
							<th>联系人</th>
							<th>手机号</th>
							<th>广告交易平台审核状态</th>
							<th>利润设置</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody class="roleList">

					</tbody>
				</table>

				<!--分页-->
				<div id="pageToolbar" class="page">
					<div id="Paging" class="ui-paging-container">
						<ul>
							<li class="js-page-first js-page-action ui-pager" data-page="1">首页</li>
							<li class="js-page-prev js-page-action ui-pager" data-page="">上一页</li>

							<li class="ui-paging-toolbar">
								<span>跳转到</span><input type="text" class="ui-paging-count"> 页 &nbsp;&nbsp;总共：
								<span class="js-page-total" style="color: #4A9DD2;"></span>&nbsp;&nbsp;页
								<select class="ui-select-pagesize">
									<option value="10">每页展示10条/页</option>
									<option value="20">每页展示20条/页</option>
									<option value="50">每页展示50条/页</option>
								</select>
							</li>
							<li class="js-page-last js-page-action ui-pager" data-page="">末页</li>
							<li class="js-page-next js-page-action ui-pager" data-page="">下一页</li>
						</ul>
					</div>
				</div>
			</div>
			<!--利润设置-->
			<div class="layui-layer layui-layer-page  layer-anim" id="layui-layer13" type="page" times="13" showtime="0" contype="object" style="z-index: 19891027; height: 250px; top: 16px; left: 626px;display: none;">
				<div class="layui-layer-title" style="cursor: move;">利润设置</div>
				<div id="" class="layui-layer-content" style="height: 208px;">
					<div class="profits form layui-layer-wrap" style="display: block;">
						<div class="form-group">
							<label>利润类型：</label>

							<div class="radio ng-isolate-scope checked" ng-click="clickFunc()" value="2">
								<b></b>
								<span>
									<span>按广告主</span>
								</span>
							</div>
							<div class="mt10">
								<input type="text" id="profitSave" class="form-control ng-pristine ng-valid ng-not-empty ng-touched profie" style="width: 66px;display: inline-block;"> %
							</div>
							<input type="hidden" id="datauId" />
						</div>
						<div class="form-group btn-group" style="padding-left: 47px;">
							<button type="button" class="dsp-btn btn-green profitSet" style="width: 100px;margin-right: 40px;">保存</button>
							<button type="button" class="dsp-btn btn-red close-layer closeProfit" style="width: 100px;margin-right: 40px;">关闭</button>
						</div>
					</div>
				</div>
				<span class="layui-layer-setwin">
					<a class="layui-layer-ico layui-layer-close layui-layer-close1 closeProfit" href="javascript:;"></a>
				</span><span class="layui-layer-resize"></span>
			</div>
			<!--重置密码-->
			<div class="layui-layer layui-layer-page  layer-anim ng-hide" id="layui-layer7" type="page" times="7" showtime="0" contype="object" style="z-index: 19891021; height: 280px; top: 91.5px; left: 776.5px;">
				<div class="layui-layer-title" style="cursor: move;">重置密码</div>
				<div id="" class="layui-layer-content" style="height: 238px;">
					<div class="rePwd form layui-layer-wrap" style="display: block;border: 0;">
						<div class="form-group">
							<label>密码：</label>
							<input type="password" class="form-control ng-pristine ng-untouched ng-valid ng-empty"id="advPwdpassWord">
						</div>
						<div class="form-group">
							<label>重复密码：</label>
							<input type="password" class="form-control ng-pristine ng-untouched ng-valid ng-empty" id="advPwdpassWord2">
						</div>
						<div class="form-group btn-group" style="padding-left: 66px;">
							<button type="button" class="dsp-btn btn-green resetAdvPWD" style="width: 100px;margin-right: 40px;">保存</button>
							<button type="button" class="dsp-btn btn-red closeRePwd" style="width: 100px;margin-right: 40px;">关闭</button>
						</div>
					</div>
				</div><span class="layui-layer-setwin"><a class="layui-layer-ico layui-layer-close layui-layer-close1 closeRePwd" href="javascript:;"></a></span><span class="layui-layer-resize"></span></div>

			
			<!--域名弹框-->
			<!--<div class="modal fade" tabindex="-1" id="domainModal">
				<div class="modal-dialog">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
							<h4 class="modal-title">设置域名</h4>
						</div>
						<div class="modal-body">

							<div class="form-group">
								<label><span class="star">*</span>域名：</label>
								<div class="dropdown dropdown-filter ng-isolate-scope" ng-class="{disabled:disabled}" list="domainList" callback="selectDomain"> <button class="btn btn-default dropdown-toggle cl" data-toggle="dropdown">                                <span style="width: 55%; display: inline-block;" class="ng-binding"></span>                                <span ng-show="publish" class="estimate ng-hide">                                    <span class="ng-binding">流量占比：%</span>                                    <span style="width: %"></span>                                </span>                            </button> <span class="caret"></span>
									<ul class="dropdown-menu">
										
										<li class="cl ng-scope" ng-repeat="item in list" ng-click="clickFunc(item)">
											<a title="e.huawei.baoxianzg.com" href="javascript:;" class="ng-binding">e.huawei.baoxianzg.com</a> <span ng-show="publish" class="estimate fl ng-hide">                                        <span class="ng-binding">流量占比：%</span> <span style="width: %"></span> </span>
										</li>
										
									</ul>
								</div>
							</div>
						</div>
						<div class="modal-footer">
							<button class="dsp-btn btn-blue" ng-click="editDomain()">确定</button>
							<button class="dsp-btn btn-white2" data-dismiss="modal">取消</button>
						</div>
					</div>
				</div>
			</div>
			-->
		</div>
		<div id="popLayer" style="display:none;position: fixed;z-index: 999;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0,0,0,0.5);"></div>
		<!--广告主弹框-->
			<div class="modal fade" id="advModal" style="opacity: 1;background: rgba(0,0,0,0.5);overflow-x: hidden;overflow-y: auto;">
				<div class="modal-dialog" style="transform: translate(0,0);">
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close close2"><span aria-hidden="true">×</span></button>
							<h4 class="modal-title"></h4>
						</div>
						<div class="modal-body">
							<div class="form-group" id="advloginName1">
								<label><span class="star">*</span>账户名：</label>
								<input type="text" class="form-control ng-pristine ng-untouched ng-valid ng-empty" id="advloginName">
							</div>
							<div class="form-group" id="advpassWord1">
								<label><span class="star">*</span>密码：</label>
								<input type="password" class="form-control ng-pristine ng-untouched ng-valid ng-empty" id="advpassWord">
							</div>
							<div class="form-group" id="advpassWord21">
								<label><span class="star">*</span>重复密码：</label>
								<input type="password" class="form-control ng-pristine ng-untouched ng-valid ng-empty" id="advpassWord2">
							</div>
							<div class="form-group">
								<label><span class="star">*</span>公司网站：</label>
								<input type="text" class="form-control ng-pristine ng-untouched ng-valid ng-empty" id="advwwwUrl" placeholder="http(s)://">
							</div>
							<div class="form-group">
								<label><span class="star">*</span>公司名称：</label>
								<input type="text" class="form-control ng-pristine ng-untouched ng-valid ng-empty" id="advname">
							</div>
							<div class="form-group">
								<label><span class="star">*</span>品牌：</label>
								<input type="text" class="form-control ng-pristine ng-untouched ng-valid ng-empty" id="advbrand">
							</div>
							<div class="form-group">
								<label>公司简称：</label>
								<input type="text" class="form-control ng-pristine ng-untouched ng-valid ng-empty" id="advshortName">
							</div>
							
							<div ng-if="isDirect == 0" class="form-group ng-scope">
								<label><span class="star">*</span>角色：</label>
								<div class="dropdown dropdown-filter ng-isolate-scope">
									<button class="btn btn-default dropdown-toggle cl" data-toggle="dropdown">  
										<span style="width: 55%; display: inline-block;" class="getFuncVal" id="advrole" data-value=""></span>
									</button> 
									<span class="caret"></span>
									<ul class="dropdown-menu roledropdown-menu"></ul>
								</div>
							</div>
				
							<div class="form-group">
								<label><span class="star">*</span>行业大类：</label>
								<div class="dropdown dropdown-filter ng-isolate-scope"> 
									<button class="btn btn-default dropdown-toggle cl" data-toggle="dropdown">  
										<span style="width: 55%; display: inline-block;" class="getFuncVal" id="advdalei" data-value="">请选择行业大类</span>    
									</button>
									<span class="caret"></span>
									<ul class="dropdown-menu daleidropdown-menu"></ul>
								</div>
							</div>
							<div class="form-group">
								<label><span class="star">*</span>行业小类：</label>
								<div class="dropdown dropdown-filter ng-isolate-scope">
									<button class="btn btn-default dropdown-toggle cl" data-toggle="dropdown">  
										<span style="width: 55%; display: inline-block;" class="getFuncVal" id="advxiaolei" data-value="">请选择行业小类</span>   
									</button> 
									<span class="caret"></span>
									<ul class="dropdown-menu xiaoleidropdown-menu"></ul>
								</div>
							</div>
							<div class="form-group">
								<label><span class="star">*</span>域名：</label>
								<input type="text" class="form-control ng-pristine ng-untouched ng-valid ng-empty" id="advyuming">
							</div>
							<div class="form-group">
								<label><span class="star">*</span>联系人：</label>
								<input type="text" class="form-control ng-pristine ng-untouched ng-valid ng-empty" id="advcontacts">
							</div>
							<div class="form-group">
								<label><span class="star">*</span>手机号：</label>
								<input type="text" class="form-control ng-pristine ng-untouched ng-valid ng-empty" id="advtelephone">
							</div>
							<div class="form-group">
								<label><span class="star">*</span>公司地址：</label>
								<input type="text" class="form-control ng-pristine ng-untouched ng-valid ng-empty" id="advaddress">
							</div>
					
							<div class="form-group" id="advpremium1">
								<label><span class="star">*</span>利润设置：</label>
								<input type="text" style="width:75px;display: inline-block;" class="form-control ng-pristine ng-untouched ng-valid ng-empty" id="advpremium"> %
							</div>
						</div>
						<div class="modal-footer">
							<button class="dsp-btn btn-blue addAdv">确定</button>
							<button class="dsp-btn btn-blue updateAdv ng-hide">确定</button>
							<button class="dsp-btn btn-white2 close2">取消</button>
						</div>
					</div>
				</div>
			</div>

	</body>

</html>
<script src="../../public/js/jquery.min.js"></script>
<script src="../../public/js/layui.all.js"></script>
<script src="js/agentIndex.js"></script>
<script src="js/adv.js"></script>
<script>
	$(function() {
		$('.user').on('click', function() {
			$(this).toggleClass('hover');
		})

		$('.user').mouseleave(function() {
			$(this).removeClass('hover');
		});

		$('.dropdown').on('click', function() {

			if($(this).hasClass("open")) {
				$(this).removeClass('open');
			} else {
				$('.dropdown').removeClass('open');
				$(this).addClass('open');
			}
		})
	})
</script>
<script src="../../oem/js/oem.js"></script>